home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
a_utils
/
_archvrs
/
unix
/
pkzip19
/
part01
< prev
next >
Wrap
Text File
|
1994-02-15
|
62KB
|
1,325 lines
Newsgroups: comp.sources.misc
From: zip-bugs@cs.ucla.edu (Info-ZIP group)
Subject: v31i093: zip19 - Info-ZIP portable Zip, version 1.9, Part01/11
Message-ID: <csm-v31i093=zip19.014410@sparky.IMD.Sterling.COM>
X-Md4-Signature: f76cd19976a6931c986e76a891405198
Date: Sun, 23 Aug 1992 06:44:52 GMT
Approved: kent@sparky.imd.sterling.com
Submitted-by: zip-bugs@cs.ucla.edu (Info-ZIP group)
Posting-number: Volume 31, Issue 93
Archive-name: zip19/part01
Supersedes: zip: Volume 23, Issue 88-96
Environment: UNIX, VMS, OS/2, MS-DOS, MACINTOSH, WIN-NT, LINUX, MINIX, XOS, !AMIGA, ATARI, symlink, SGI, DEC, Cray, Convex, Amdahl, Sun, PC
______________________________________________________________________
Zip 1.9 is a compression and file packaging utility. It is analogous
NOTE: Info-ZIP's mailing addresses and ftp site will be changing
within the next month. The current e-mail addresses should hold for
a while via mail-forwarding, but watch for the new addresses in our
next release.
______________________________________________________________________
Zip 1.9 is a compression and file packaging utility. It is analogous
to a combination of tar and compress and is compatible with PKZIP 1.93a
(Phil Katz ZIP) for MSDOS systems. There is a companion to Zip called
UnZip (of course) which is being posted concurrently, as are the encryp-
tion/decryption routines for Zip and UnZip, and a Microsoft Windows add-
on to UnZip called WizUnZip.
This version of Zip has been ported to a wide array of Unix and other
mainframes, minis, and micros including VMS, OS/2, Minix, MSDOS, Windows-
NT, Atari, and Macintosh (the latter two have not been tested recently).
Although highly compatible with PKware's PKZIP and PKUNZIP utilities of
MSDOS fame, our primary objective has been one of portability and other-
than-MSDOS functionality. Features not found in the PKWare version in-
clude creation of zip files in a pipe or on a device; VMS and OS/2 ex-
tended file attributes; conversion from Unix to MSDOS text file format;
the ZipSplit and ZipNote utilities; and, of course, the ability to run
on most of your favorite operating systems. Plus it's free. :-)
------------
#! /bin/sh
# This is a shell archive. Remove anything before this line, then feed it
# into a shell via "sh file" or similar. To overwrite existing files,
# type "sh file -c".
# The tool that generated this appeared in the comp.sources.unix newsgroup;
# send mail to comp-sources-unix@uunet.uu.net if you want that tool.
# Contents: atari history mac msdos nt os2 tailor.h vms
# Wrapped by kent@sparky on Sun Aug 23 01:00:42 1992
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
echo If this archive is complete, you will see the following message:
echo ' "shar: End of archive 1 (of 11)."'
if test ! -d 'atari' ; then
echo shar: Creating directory \"'atari'\"
mkdir 'atari'
fi
if test -f 'history' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'history'\"
else
echo shar: Extracting \"'history'\" \(49244 characters\)
sed "s/^X//" >'history' <<'END_OF_FILE'
XNote, this history contains mail addresses and ftp locations that no longer
Xexist, such as addresses at wsmr-simtel20 and directory names containing
Xw8sdz, among others. For problems, the correct email address is
Xzip-bugs@cs.ucla.edu.
X
X------------------------ Nov 7 1990 version 0.0 ------------------------
X------------------------ Nov 8 1990 version 0.1 ------------------------
X------------------------ Nov 12 1990 version 0.2 ------------------------
X------------------------ Nov 14 1990 version 0.3 ------------------------
XThank you for your comments. Here is Zip 0.3 with almost all of that fixed.
XThe changes include:
X
X1. Put \n\ for newlines in long strings (everyone had this problem).
X2. Wrote my own bsearch (called search---different args).
X3. Wrote my own timelocal (called invlocal), used whether STDC or not.
X (Note to Greg: look at the code---I found a simple way to do it.)
X4. -m now deletes empty directories also.
X5. Changed crc.c to util.c and put search() in util.c.
X6. Changed "void *" to "voidp *" and made voidp void for STDC, else char.
X7. Removed -a option.
X8. Some minor changes to zip.doc.
X
XI did not do anything about Cliff Manis's problem with DIR not being
Xdefined. DIR should have been defined in sys/dir.h. If it wasn't, then
Xthere's something wrong with dir.h, or it is missing, or the opendir, etc.
Xfunctions are missing. I don't really want to think about what to do for
Xthe latter possibility.
X
XNUnzip 3.99 does not appear to be Unix-ready. It fails for file names longer
Xthan 12 characters (Segmentation fault), cannot find explicit names that
Xdo not contain a dot, and does not notice the Unix identifier (which should
Xswitch off name to lower-case mapping).
X
X------------------------ Nov 20 1990 version 0.4 ------------------------
XYo Zippers,
X
XHere is a first attempt at a Zip intended to work on System V. Try using
X"make sysv" for such systems. I also included replacements for memset()
Xand memcmp() by Bill Davidsen and James Dugal for systems without those.
XUse "make old" to include those routines. Sun's use getdents() like Sys V,
Xeven though it's BSD, so use "make sun". For others, try just "make".
X
XWhen using "make" a second time with a different request, it's best to erase
Xall the .o files to force recompiling everything.
X
XWhat follows are the changes I made and some things to try if you get it
Xcompiled. Have fun.
X
XMark
X
X
XChanges from Zip 0.3 to Zip 0.4:
X
X1. Changed third arg of search() to size_t to make lint happier.
X2. Replaced zip.doc with a man page, zip.1 (raw) and zip.man (formatted).
X3. rename() replaced with link() and unlink().
X4. Fixed vem in central header and added REVISION and REVDATE #define's
X to zip.h. (Didn't read Phil's appnote.txt carefully enough there.)
X5. Removed prototypes except for development host (NeXT). (They're only
X there for my benefit anyway---they should not affect the resulting
X code. Consider them some meager documentation.)
X6. Changed rindex() to strrchr().
X7. Improved behavior on a write failure when -b is used.
X8. Added Bill Davidsen's and James Dugal's memset(), memcpy(), and
X memcmp() routines under the trusty ZMEM #define.
X9. Check that zip file is writeable before doing any real work.
X10. Added #ifdef REGEX to use regcmp(), regex() instead of re_comp(),
X re_exec(). (We'll see if this works.)
X11. Replaced opendir(), readdir(), closedir() with my own opend(), readd(),
X and closed() routines that use getdirentries() on BSD and getdents() on
X System V (I hope) and Sun's. An #ifdef DIRENT selects getdents().
X12. zip.h no longer #includes string.h, instead defining the string
X functions used explicitly.
X
X
XIf you get Zip 0.4 to compile, here are some things to test:
X
X1. Try zipping up some stuff, of course. Use all the options that are
X implemented. Especially try -rp and -rpm on a directory tree (use
X *test* files and directories, of course).
X2. Naturally check with unzip -t, but also check with "zip xxx" where
X xxx.zip is the zip file. This should say "nothing to do", but if it
X says "error in zip file structure", there's a problem.
X3. After zipping, check that there are no $Z* files leftover.
X4. Try using -b, specifying a path on another device. Check for $Z*'s.
X5. Try -d and a regular expression (like \*.o) on a zip file.
X6. And I'm interested in timing---try it on a 500K or so text file.
X
X------------------------ Nov 27 1990 version 0.5 ------------------------
XHail fellow zippers,
X
XHere's Zip 0.5. The biggie is it now includes implosion, courtesy of Rich
XWales. Even as we speak, he is working on new algorithms for implode that
Xpromise to be significantly faster. He might even get a paper out of it ...
X
XYou can use the -s option (shrink only) when testing to save a little time,
Xbut also try it normally to test implosion (if you test with text files
Xof reasonable length, implosion will be chosen for most of them). Also, for
Xspeed testing of implosion, use -i to not waste time trying to shrink.
X
XIncluding implosion about doubles the size of zipnn.tar.Z, so I would like
Xsome input on distributing subsequent versions. Would y'all like to keep
Xon getting the uuencoded version via mail, or would you prefer a notice
Xabout availability via anonymous ftp on simtel20.army.mil in <w8sdz.zip>?
X(I have been sending the previous versions to Keith to put there, and will
Xcontinue to do so. I do not know what the lag time is for him to move it
Xthere.)
X
XThe other important change is that this is another attempt at getting the
Xdirectory access routines working on all systems. Read the installation
Xpart of the manual page (zip.man). And if you feel like, read the whole
Xthing. I'm also taking suggestions for and bugs in the documentation.
X
XThe differences from Zip 0.4 include:
X
X1. Changed all occurences of "size_t" to "extent" and typedef'ed extent
X to size_t (after an #include <stddef.h>) for ANSI C, or unsigned int
X otherwise. If anyone finds that they have a non ANSI C, that size_t
X is defined, and that it is not the size of the compiler's int, then
X please let me know.
X2. Changed help() to put the help text in a static array of strings and
X then printf() for each line. Some compilers barfed on the long
X string. Suggested by davidsen@crdos1.crd.ge.com.
X3. Added Rich Wales' implode routines, made their inclusion the default
X (changed #ifdef IMPLODE to #ifndef NOIMPLODE).
X4. Put "extern int errno;" in unixfile.c (redundant extern's should be ok).
X5. Minor changes to the man page (zip.1 and zip.man).
X6. Added warnings for names given on the command line that are not matched.
X Lack pointed out by grimesg@sj.ATE.SLB.COM (George).
X7. Changed back to opendir(), etc. on BSD systems.
X8. Added NDIR #define for HPUX to #include <ndir.h> instead of <sys/dir.h>.
X9. Redid Makefile, adding next (use shared library), sysvpw (System V's
X that require linking the libPW library for regex routines), and hpux
X (see #8 above).
X
XAs usual, report problems to info-zip@wsmr-simtel20.army.mil. If you wish,
Xyou can, in addition, send the same report to me (madler@piglet.caltech.edu)
Xor Rich (wales@cs.ucla.edu) if the problem is with implosion (i* files) for
Xquicker reponse.
X
Xyour humble servant,
XMark Adler
X------------------------ Dec 7 1990 version 0.6 ------------------------
XGreetings and Felicitations Honorable Zip Compatriots,
X
XI have uploaded Zip 0.6, which incorporates most of your helpful comments,
Xto Simtel20.Army.Mil, and it should evenually end up in <W8SDZ.ZIP> as
XZIP06.TAR-Z. The most significant change is the addition of encryption
Xboth as the -e option in Zip, and a new program, ZipCloak, that encrypts
Xand decrypts zip entries. This surely adds some new portability problems,
Xdue to the getp() routine which reads a password from the terminal with no
Xechoing. We'll see how well this flies ...
X
XIf someone wants to PKZIP up the tar.Z file, please do so. I didn't zip
Xit up myself because a) I'm lazy, and b) PKZIP can compress it better
Xanyhow, and I don't have a PC.
X
XAlso, there is an EXPORT symbol used to remove encryption, so I can make
Xan export version that does not have -e or ZipCloak. This version will
Xsimply be missing a few source files and have a different Makefile.
X
XI also added a few systems to the Makefile, and made some other changes to
Xit based on all your detailed comments. If it still works after all that,
XI'll be amazed.
X
XThose and other changes from 0.5 to 0.6 are detailed at the end of this note.
X
XI have not addressed the portability problem with the implode routines,
Xsince that is Rich's domain. I have no idea what is causing it. (For those
Xwho don't know, one system produced remarkable 90% compression rates with
Ximplode, but alas, it is a bug.)
X
XOne fellow complained that zipping up the README file results in a zip file
Xthat is larger than the original, even though Zip claims it compressed it.
XWell, it did compress it, but the ZIP file format has an overhead of
X76+2*N bytes per file+22 bytes, where N is the length of the file name.
XAnd that's without comments or "extra" information. So, a zip file with a
Xsingle file whose name has six characters has an overhead of 110 bytes.
XREADME gets shrunk by 16% from 274 bytes to 230 bytes, resulting in a total
Xzip file size of 340 bytes---larger than the original file (274 bytes).
XThe moral is don't expect zip to compress a single small file. The other
Xmoral is use unzip -v to see the compression.
X
XSomeone else asked about multi-disk zip files. I'm not sure I believe in
Xthose, since PKZIP and PKUNZIP do not appear to suppport them (though it is
Xpart of the ZIP file definition in APPNOTE.TXT). What I was planning on
Xdoing for that case was to write a ZipSplit program that would take a large
Xzip file and try to optimally split it into the fewest number of zip files
Xthat are all less than the specified size. Each would be a complete, stand
Xalone zip file---not part of a single, multi-disk zip file. There would
Xalso be a ZipMerge program.
X
XThis is the version of Zip that will live in infamy (note the revision date).
XOf course, some current Presidents of the United States think that should be
XSeptember 7th, but I won't name any names.
X
XI am going on vacation for about two weeks, so I expect to find many new
Xproblems reported upon my return.
X
XAnd lastly, for my Holiday Greetings: Party On Dudes.
X
XMark Adler
Xmadler@piglet.caltech.edu
X
X
XHere are the changes from Zip 0.5 to Zip 0.6:
X
X1. Minor documentation changes (zip.1 and zip.man).
X2. Fixed an embarrasing lack of recursion in opend/readd/closed functions
X that only existed in 0.5.
X3. Moved $(LDFLAGS) to end of the linking command line in Makefile.
X4. Added make dnix for DNIX 5.2, 5.3 not using optimization (no -O).
X5. Wrote ZipCloak for encryption and decryption.
X6. Rich changed the output routines of implode to use zfwrite and zputc to
X provide hooks for encryption (defined in crypt.h). Also removed
X function prototypes unless PROTO defined.
X7. Added encryption (-e) to Zip.
X8. Added make pyramid (use rindex() instead of strrchr()).
X9. Changed make to $(MAKE) and cc to $(CC) in Makefile.
X10. Took out strip in Makefile.
X11. Changed year from 1991 to 1990. (How'd *that* get in there? Of course,
X it's not as bad as when I wrote a check the other day and dated it 1977.
X I think my brain cell isn't working as well as it used to.)
X12. Added make cray (use scc instead of cc).
X13. Added make amdahl (use system() instead of rmdir()).
X14. Added entry of one-line comments for added files (-c).
X15. Put comment delimiters around name following #endif's in Rich's code.
X
X------------------------ Feb 13 1991 version 0.7 ------------------------
XFellow stuck zippers,
X
XWell folks, it's been a while since 0.6. so there have been a lot of
Xchanges on the way to 0.7. The exhaustive listing is below, but here are
Xsome highlights ...
X
XImplode now (appears) to be PKUNZIP compatible. There were many odd
Xlittle requirements implosed by the coding of PKUNZIP that were obtained
Xfrom Phil Katz and associates. Now that Rich has that working, he will
Xlikely be working on much faster string matching routines to speed up
Ximplode.
X
XUser interrupts (control-C or kill) are now caught and the temporary files
Xare deleted, making for a clean getaway.
X
XSelf-extracting zip files for MSDOS can now be processed, with the
Xextensions zip, ZIP, exe, or EXE. This allows you to make self-extracting
Xzip files for MSDOS by taking an existing one (like PKZ110.EXE) and
Xdeleting all the entries to get a prototype self-extracting zip file that
Xcan be copied and added to. Of course, you should only do this if you are
Xa registered user of PKZIP. Note that if the file does not end in .zip,
Xyou have to give the full name.
X
XI have relaxed some of the restrictions on zip files to allow processing
Xones with "authenticity verification" (applied by the PUTAV program that
Xcomes with PKZIP). Of course, the authenticity no longer checks out if
Xyou muck with the file, but at least you can muck with it now.
X
XThe Makefile has been considerably simplified, thanks to suggestions from
XJean-Loup Gailly. Also, I wrote my own sh expression matcher, eliminating
Xthe regular expression hassles, and the REGEX symbol and -lPW options in
Xthe Makefile.
X
XMany, many cosmetic changes, the most dangerous of which was turning on
Xprototypes again in the hopes we can get them to work. If they cause you
Xproblems, record the problems (for me), and then add a -DNOPROTO to the
Xappropriate line in the Makefile and try again.
X
XThis version now compiles under Microsoft C 5.1 and Turbo C++ 1.0, with
Xmuch thanks to Jean-Loup Gailly. I say "compiles" and not "works" because
XI have not thoroughly tested it. It does work, but there may be errors in
Xthe port as well as errors in the design. By the latter I mean that there
Xmay be some disagreement over what you expect it to do and what it does,
Xespecially with regards to upper and lower case names and wildcard
Xpatterns. Also, the implode routines do not yet work under MSDOS, so the
Xcompilations are done using NOIMPLODE. There are two dumb batch files to
Xdo the compile: doturboc.bat and domsc.bat. If someone would like to
Xwrite make files for the make utilities that come with those languages,
Xplease be my guest. I'm just too lazy. However, I would probably resist
Xincluding make files that require a make utility that does not come with
Xthose languages, be it commercial, shareware, or free.
X
XThere are two new programs: ZipSplit and Ship. ZipSplit tries to split a
Xbig zip file into the smallest number of zip files less than a specified
Xsize. This is to aid in using zip to backup to floppies. It has the
Xlimitation that it cannot break up an entry in a zip file, since it makes
Xcomplete, standalone zip files. This means if any entry is larger than
Xthe specified size (plus some overhead), zipsplit will give up and not do
Xthe split. It does *not* implement the multi-disk zip file format implied
Xin APPNOTE.TXT. ZipSplit will optionally write an index file and deduct
Xthe size of that file from the first zip file so both will fit on the
Xfirst disk.
X
XShip is a fixed-up version of a program I have been using myself for some
Xtime in place of uuencode/uudecode. It's purpose is to facilitate sending
Xzip files through the mail. It uses a more efficient coding scheme than
Xuuencode (four bytes per five characters instead of three bytes per four
Xcharacters) and includes a crc at the end of each file to check the
Xveracity what was received. It can split its output to a specified size
Xand recombine it automatically at the other end, verifying the sequence.
XIt can also mail the parts to a specified address, with subject lines
Xidentifying the parts, instead of making a bunch of files that you're just
Xgoing to mail and delete anyway. Example:
X
X % ship -500 -m saddam@pickle.iq README zip07.zip
X README shipped
X zip07.zip shipped
X files part0001..part0004 mailed
X
Xwill mail README and zip07.zip together in four chunks of 500 or fewer
Xlines each. At the other end, Saddam can save the parts into the files
Xnamed in the subject lines (part0001..part0004), and then do:
X
X % ship -u part*
X README received
X zip07.zip received
X
XFor now, zip.1 (and zip.doc) are incomplete as far as MSDOS goes. I'll
Xput off doing that until the MSDOS version has stabilized. Likewise, I
Xhave put off writing zipcloak.1, zipsplit.1, and ship.1 for the same
Xreason.
X
XThere are, of course, all the little changes that fix bugs (what are
Xthose?), make the Makefile work on more systems, documentation, and,
Xfor the alert reader, an undocumented option ...
X
XAs usual, send reports to info-zip@wsmr-simtel20.army.mil, so everyone
Xcan get a chuckle out of whatever new bugs I've introduced.
X
XMark Adler
Xmadler@pooh.caltech.edu
X
X
XChanges from release 0.6 to release 0.7:
X
X1. Changed Makefile to use mv instead of -o on compiles.
X2. Added MAKE = make to Makefile.
X3. Catch user interrupt or termination and delete temporary files.
X4. Allow general purpose flags in local and central headers to differ in
X the "reserved" bits. Keep both for copying zip entries verbatim.
X5. Removed prototype for closedir--return value not used and inconsistent
X across systems.
X6. Wrote ZipSplit to break a large zip file into the smallest number of
X zip files less than a specified size. Run zipsplit with no arguments
X to see the command help.
X7. Put error messages in globals.c to be common across zip, zipcloak, and
X zipsplit. Use #define's in zip.h for error numbers.
X8. Changed getp() to open a new file for the terminal device, and added
X the echon() function to turn echoing back on when interrupted at
X password prompt.
X9. Added warn()'s to distinguish various zip file structure errors.
X10. Allow "extra" fields in local and central headers to differ.
X11. Fixed percent compression calculation to work for very large files.
X12. Included the program (makecrc.c) that generates the CRC table.
X makecrc.c is not compiled or run by the Makefile, but is present for
X completeness.
X13. Added an undocumented (except for here) option, -v, to zip that checks
X for "oddities" in the zip file structure and points them out if found
X (but continues processing).
X14. Put prototypes in crypt.h inside #ifdef NeXT to avoid redefinition
X problems with other compilers.
X15. Added "make zilog" for Zilog S8000 running Zeus 3.21.
X16. Minor changes to the manual page (zip.1 and zip.doc).
X17. Fixed bug in replace() (manifested by -b option).
X18. readzipfile() now also checks the central directory start and size in
X the end of central directory header.
X19. Allow modification of self-extracting zip files (exe instead of zip).
X20. Allow .ZIP as valid suffix as well as .zip (also .EXE and .exe).
X21. Cleaned up malloc usage, free'd everything malloc'ed.
X22. fclose'd all fopen'ed files explicitly.
X23. Corrected assignment of one ftell() result from an int to a long.
X24. Considerably simplified Makefile, based on Jean-Loup Gailly's
X suggestions.
X25. Renamed unixfile.c to fileio.c in anticipation of non-unix support.
X26. Removed const's (pesky little buggers caused too many problems).
X27. Wrote my own shell expression compare routine, took REGEX and -lPW's
X out of Makefile, which removed the sysvpw make option.
X28. Added tempname() prototype to crypt.h for the implode routines to use.
X29. Trying string.h for prototypes of string functions if __STDC__
X defined, which is what unzip.h does.
X30. Turned prototypes on if __STDC__ defined (we'll try this one more
X time). They can be turned off using NOPROTO.
X31. Improved source documentation.
X32. Changed prototype of open in fileio.c to OF((char *, int, ...)).
X33. Removed "local" from prototypes of main() (after all, it's *not*
X local).
X34. Wrote Ship program to supplant uuencode--slightly more efficient, has
X error checking, file splitting, automatic mailing, other features.
X Ship currently uses the command:
X /usr/ucb/mail -s subject < tempfile
X to send mail. Please let me know what works for your system. Note
X that I want to be able to specify a subject line.
X35. Ported to MSDOS Microsoft C 5.1, based on Jean-Loup Gailly's work.
X36. Fixed add/update bug when -p not used.
X37. Handle lower case conversion and devices (e.g. C:) for MSDOS.
X38. Indented the #ifdef/#ifndef constructs that do not contain function
X definitions, to improve the readability somewhat.
X39. Cleaned up error handling. Now use perror() for i/o errors. Put the
X errors and messages in ziperr.h.
X40. Ported to MSDOS Turbo C++ 1.0.
X41. Implemented wild card expansion on the command line for MSDOS and
X handle MSDOS matching (*.* == all, not *).
X42. Changed version required to unzip to 11 (1.10) since the implode
X routines can procude an overlapping match one away from the end of the
X window (PKUNZIP 1.00 requires two away from the end).
X43. Changed old next make option to next10 (for version 1.0) and added a
X new next make option for 2.0 (just called next) that uses the -object
X linking option for smaller executables.
X44. Added -z option to take a multi-line zip file comment from stdin.
X45. Changed temporary names from $ZXXXXXX to _ZXXXXXX, where XXXXXX is
X filled in by mktemp(). This avoids problems with "rm $Z*" in sh.
X46. Got new implode routines from Rich that are (hopefully) PKUNZIP
X compatible.
X47. When -b is not specified, put the temporary files in the same
X directory (i.e. the same device) that the zip file is (or will be) in.
X48. Added doturboc.bat and domsc.bat files to compile for Turbo C++ 1.0
X and Microsoft C 5.1. I am interested in successes and failures with
X other versions of those compilers. In this version, the implode
X routines do not work under MSDOS.
X------------------------ May 6 1991 version 0.8 ------------------------
XBuenos Dias Amigos,
X
XHeer ees dee Cinco de Mayo reeleese of seep, aka Zip 0.8. The changes
Xfrom 0.7 are in the (long) list below, but here are some highlights:
Xfaster implode, faster shrink, first attempt at a VMS version (thanks
Xto Cave Newt), and a new program, ZipNote, to aid in editing zip file
Xcomments. To compile under VMS, do an "@makevms.com". To compile using
XMircosoft C do a "make makefile.msc". To compile using Borland (Turbo)
XC, do a "make -fmakefile.bor". Please try to break any or all of these
Xprograms in every conceivable way--we're getting close a public release.
XThank yew fer your support.
X
XMark Adler
Xmadler@pooh.caltech.edu
X
XChanges from 0.7 to 0.8:
X
X1. Added the -n option to prevent compressing already compressed files.
X Documented -n in zip.1.
X2. Check the length of the compressed data in zipup() in case implode or
X shrink has a bug.
X3. Fixed -v option to not complain about needing PKUNZIP 1.1.
X4. Added report of store/shrink/implode sizes when -v (verbose) used.
X5. Put in Rich's patch to fix 100% implosion bug.
X6. Fixed -i bug.
X7. Made changes to im_ctree.c and implode.c to (hopefully) make it work
X under MSDOS. (Jean-Loup said declare topmaxvals and botmaxvals as
X U_INT in im_ctree.c, and use MSDOS, not __MSDOS__ in implode.c.)
X8 Added implode routine compilation to domsc.bat and doturboc.bat.
X9. Replaced FILENAME_MAX with FNMAX, which is now always 1024. (It seems
X FILENAME_MAX is incorrectly set to 14 on some System V Unixii.)
X10. Changed BEST to -1 so it is different from STORE (=0). Redid some of
X the method logic in zipup().
X11. Changed wb+ to w+b in implode.c.
X12. Removed "nothing to do" error for -u and -f.
X13. Zip source distributions will now have tabs removed, except for
X Makefile and Makefile.exp (no feelthy tabs rule).
X14. Changed zip error on open failure to a warning. This accounts for
X files that do not have read permission or are locked, and files
X deleted during the zip. For entries being updated, the old entry is
X copied over instead. This change had the side effect of removing the
X zipskip() routine.
X15. Removed OBJC dependencies in Makefile.exp (didn't belong).
X16. Removed strip from Makefile, instead using the -s link option.
X17. Fixed -um and -fm to delete files whose entry's times were checked in
X the archive.
X18. Put portability stuff common to zip.h and crypt.h into tailor.h.
X19. Added mark tracing to -v (for debugging).
X20. Changed name and zname logic--an external name is always converted
X into an internal zname, and vice-versa. zname is now always
X malloc'ed.
X21. Fixed -z to use CRLF between lines (for PKZIP) and have no newline
X after the last (or only) line.
X22. Added clean to Makefile (deletes *.o, zip, zipcloak, zipsplit, ship).
X23. Replaced LDFLAGS with LFLAGS1 and LFLAGS2 in Makefile (splits link
X options before and after object files as in unzip).
X24. Added scodos to Makefile (from Bill Davidsen).
X25. Included stdio.h in tailor.h--removed stdio.h from zip.h and
X implode.h.
X26. Do not include stddef.h if M_XENIX defined.
X27. Cast the arguments of all free() calls to (voidp *).
X28. Added casts to char * for memset() and qsort() args in zipsplit.c.
X29. Changed implode.h to define malloc and str* properly.
X30. Fixed invlocal() to handle integer overflow correctly, as well as
X reliably across compilers.
X31. Got new implode.h from Rich with fix #29 above. Removed stdio.h
X include.
X32. Commented out the abort() calls in im_ctree.c.
X33. -ee requests a verification of the encryption password.
X34. malloc and free tempath.
X35. Documented -, SCO, and scodos in zip.1, and - in help().
X36. Added revision.h for Zip revision number and date.
X37. -u and -f with no arguments now (both) freshen the entire archive.
X38. Use /Oait instead of /Ox for MSC to avoid loop optimization (buggy on
X 5.1, and sometimes even crashes compiler!).
X39. Added ! (reverse) range matching to shmatch(), and early abort on '*'
X failures (speeds up pathological patterns). Cleaned up '\' (escape)
X handling.
X40. Changed '!' in ship to '{' (some EBCDIC translations do not include
X !). However, unship (ship -u) still understands '!'. Also added the
X -v option of ship to print out the version and revision date. Also
X now refuse to overwrite an existing file when unshipping (ship -u),
X but there is a -o option to overwrite anyway.
X41. Added a "fast" mode to ship using hard-arithmetic coding that is
X nearly as efficient as base 85 coding, but much faster on 16-bit
X machines (base 85 coding uses 32 bit multiplication and division).
X42. Put tailor.h back in ship.c, so that ship.c can stand on its own.
X43. Made -p the default, and added a new option, -j to do the opposite
X (junk directory names). -p is still there but does nothing, so as to
X avoid annoying PKZIP users. Changed documentation and help()
X accordingly.
X44. If -j is used, and two files are to be added with the same name, then
X zip exits with an error.
X45. Wrote ZipNote for editing zipfile comments. Just do zipnote for
X usage.
X46. Replaced Rich's im_lmat.c with a new one from Jean-Loup. Improves the
X speed of implode by a factor of two, and even more for very large
X files.
X47. Reduced the execution time of shrink by 33% simply by moving the code
X around (eliminated some unnecessary calls, moved some tests).
X Shrink's execution time is now about 50% more than compress (it used
X to take over twice as long). Hash tables for shrink are still
X intended for a future release.
X48. VMS mods from Greg: replace() unlinks only after copy, changed
X delete() to destroy(), added code for deletedir(), use creation time
X instead of modification time, warn if stamp() attempted, changed
X includes, make link rename and unlink delete, added findfirst,
X findnext stuff, added wild() for VMS, modified newname(), procname().
X49. Implemented internal<-->external name conversions for MSDOS and VMS.
X50. For VMS matching, changed ? to %, removed bracketed ranges.
X51. Added makevms.com, stolen from Unzip (vms_make.com).
X52. Implemented -k (force the zip file to look like it was made by PKZIP).
X53. Removed implode for VMS (it crashes--haven't tracked down where).
X54. Got Jean-Loup's makefile.dos working for MSC 5.1 (makefile.msc) and
X Turbo C++ 1.0 (makefile.bor).
X------------------------ Jul 11 1991 version 0.9 ------------------------
XHey gang,
X
XHere is our very-nearly-ready-to-release version of Zip. There will be no
Xfeatures added or changed from 0.9 to 1.0--only bugs fixed. I hope that
Xwe can get 1.0 out pretty quickly then. This is really your last chance to
Xfind bugs before it goes out, so please, please test all the programs as
Xmuch as you can. Try all the features, if possible, and perhaps try to
Xthink of ways to break the programs. Also, and this is very important, read
Xthe documentation in zip.doc and "debug" that too. I already know that it
Xis not complete in 0.9, but please send any comments about errors, omissions,
Xformat, or whatever to Info-ZIP, even if they seem obvious.
X
XThe highlights of the changes from 0.8 to 0.9 are: faster, slicker implode;
Xoperation in small model on MSDOS for speed; a new temporary file interface
Xfor faster operation on small files; some shrink improvements; and some new
Xoptions (-y, -g, -q). Also, ship has been enhanced in several ways, not the
Xleast of which is a help option (-h).
X
XHave fun.
X
XMark Adler
Xmadler@tybalt.caltech.edu
X
X
XChanges from 0.8 to 0.9:
X
X1. Removed the "not implemented yet" note in help() for -k (it *is*
X implemented now). Removed from bug list in zip.1 too.
X2. Fixed Turbo C implode bug.
X3. Added /link /e in makefile.msc for ship.c.
X4. Made handler() in zipnote.c the same as handler() in zipsplit.c.
X5. Added -y option in Unix to store symbolic links as such. (We need
X Unzip to be aware of symbolic links and use symlink() to recreate them.)
X6. Ignore control characters in unship input.
X7. Use prototypes and ANSI libraries if MSDOS. (Used to check for Turbo C,
X but Microsoft C 6.0 also does not define __STDC__ unless strict ANSI
X is requested.)
X8. Added mod to ct_fsort() from Rich that should remove any qsort()
X dependencies in implode output.
X9. Removed some 32/16-bit prejudices in util.c and crypt.c that affect
X 64-bit integer (short, int, and long) machines (Cray).
X10. Added System V MAILX option to ship.c to use the mailx command. This
X is automatically activated by DIRENT if ship is compiled by the zip
X makefile.
X11. Added patches from Greg Roelofs for echo control on Cray and Amdahl.
X The patch uses termio.h and ioctl(), and is assumed for all System V,
X not just those (we'll see how this flies).
X12. Changed -Ox to -Oacegit -FPi87 in makefile.msc. Added /nologo to link.
X13. Applied J-L's 082 mods (Sinatra style): select 4K window for < 5.5K,
X 8K window for >= 5.5K files (just like PK does); various im_ctree.c
X mods verbatim (except for the treename warning, which I did differently);
X various im_lmat.c mods verbatim (except macros are done the ugly portable
X way); farmalloc'ed in shrink.c; changed makefile.msc and makefile.bor to
X use small model; added J-L to zip.1 acknowledgements (oops).
X14. Moved struct zlist's and struct flist's to far storage (needed by above
X mods). Unfortunately, I can't move the names and other things pointed to
X by those structures into the far space, since they are arguments to
X library functions like strcmp() and fwrite().
X15. Changed zipup() to both shrink and implode only on files smaller than
X BSZ. Also in that case, free up shrink data structures before allocating
X the implode data structures. Changed from fopen() to open() except for
X VMS.
X16. Fixed bug in dosmatch() to free malloc'ed space.
X17. MINIX mods (do not need minix make option): call tempname() with a unique
X character (MINIX mktemp() flawed); defined S_IWRITE as S_IWUSR if S_IWUSR
X defined; removed explicit signal dereference.
X18. Fixed bug in unship when used as a filter with no args.
X19. Changed getnam() to not use static storage.
X20. Copy permissions from old to new zip file (zip, zipcloak, zipnote).
X21. Added patches for AT&T 3B1, added 3b1 target to makefile, added to zip.1.
X22. Made FNMAX 256 for MSDOS (is 1024 otherwise).
X23. Used the "pyr" predefined symbol for Pyramid systems in tailor.h.
X24. Added Greg's VMS mods to ship.c. Added help to ship.c (-h or -?).
X Changed meaning of -nnn arg from lines to K.
X25. Moved ZMEM routines to fileio.c to properly include them in zipnote and
X zipsplit.
X26. Added -s option to ship to specify a subject line prefix.
X27. Fixed -z in zip to not trash leading blank lines in the comment.
X28. Made ship recognize "unship" in argv[0] a little more flexibly.
X29. Made sure temporary zip files are closed before being deleted by an
X error or interrupt.
X30. Added a new temporary file interface and new source files tempf.c and
X tempf.h. This avoids making temporary files for small (<16k) output.
X Both shrink and implode use this.
X31. Added OS/2 patches, files. However, left zip case-sensitive for OS/2
X names, as in Unix.
X32. Removed amdahl target in makefile, using UTS symbol instead.
X33. Changed -y to depend on definition of S_IFLNK.
X34. Avoid leading periods on lines in ship output by inserting a space.
X35. Ship is now extensible: added a warning for "unsupported keyword".
X Such keywords can appear before the "ship" line, for example.
X36. Added -g option to allow "growing" the zip file. If just adding new
X entries to a zip file, -g will write over the old zip file without
X creating a temporary. The danger is that if there is an error, the
X old zip file will be lost. If not just adding, then -g is ignored.
X37. Added aux (A/UX) target to makefile.
X38. In shrink.c, removed unnecessary FreeList and ClearList arrays, and
X the recursive Prune() routine. This also resulted in a speedup in
X shrink of about 15%. It is now only about 30% slower than Unix compress.
X39. Added -q option for quiet operation.
X------------------------ Sep 21 1991 version 1.0 ------------------------
XHello world!
X
XThis is the first public release version of Zip and its cohort utilities.
XWe hope you enjoy using it much much more than we enjoyed writing it and
Xtrying to get it to work on every fritzing raffing bliffing nobbin Unix
Xsystem in the galaxy.
X
XPlease feel free to send any problems, complaints, suggestions, kudos,
Xridicule, or whatever to zip-bugs@cs.ucla.edu. If there were a way to
Xsend cookies over the net, we'd accept those too.
X
XThank yew fer yur support.
X
XMark Adler
Xmadler@tybalt.caltech.edu
X
X
XChanges from 0.9 to 1.0:
X
X1. Removed some pesky carriage returns masquerading as spaces in fileio.c
X and zipup.c.
X2. Removed #include memory.h in tempf.c (string.h good enough).
X3. Compile ship in doturboc.bat.
X4. Miscellaneous zip.1 (zip.doc) changes.
X5. Fixed mistake in stamp() in fileio.c (didn't double seconds).
X6. Applied Jean-Loup's mods for Cray's (do not assume 16-bit shorts).
X7. Removed pyramid make option, since #ifdef pyr seems to work.
X8. Added some casts to tempf.c to clean up some warnings.
X9. Added comment to makefile.exp saying what it is.
X10. Removed length checks in zipup.c to fix problem with using Vax variable
X record length formats.
X11. Fixed VMS replace-across-devices problem.
X12. Changed order of include's in implode.h to make tailor.h show up first.
X13. Added Convex mods and make target.
X14. Fixed path delimiter under VMS for unship.
X15. Added ship to makevms.com.
X16. Put in new copyright messages.
X17. Added aix make target.
X18. Fixed zipsplit.idx to start counting at one like the file names.
X19. Changed -a (append VMS version number) to -w to leave -a open for a
X possible future option.
X20. Back to separate makefiles for Microsoft and Borland (.msc and .bor).
X21. Workaround in fileio.c for Borland stat() bug: stat() succeeds for wild
X card names that match existing files.
X22. Added "(did you remember to use binary mode when you transferred it?)"
X to the "probably not a zip file" warning.
X23. Changed utilities to append .zip only when the zip file name does not
X contain a dot.
X24. At least mentioned the other utilities in zip.doc (zipcloak, ship, etc.),
X and documented upper case matching of names when using -d under MSDOS.
X25. Fixed bug in MSDOS version: zip foo c:autoexec.bat wouldn't work.
X26. Added hidden/system attribute bug to BUGS in zip.1
X27. Fixed recognition of unship in ship when unship is in a path.
X28. Added non-stream-LF VMS bug to zip.1 bug list.
X29. Fixed bug in #23 above when path has dots. Documented #23 in zip.1.
X30. Show disclaimer only for -l, add -h and -l to zip utilities.
X31. Applied Minix patches.
X------------------------ ??? ?? 1992 version 1.1 ------------------------
X??? To be done. Should be the last version supporting shrink and implode.
X
X------------------------ Feb 17 1992 version 1.5 ------------------------
X1. pkzip 2.0 format (deflation) now supported
X Shrink and Implode left in zip 1.1 only for backward compatibility
X
X------------------------ Mar 25 1992 version 1.6 ------------------------
X1. zip can now be used as a filter in a pipe
X2. Optimized assembler code for MSDOS and OS/2
X3. encryption is now supported
X4. Better VMS support for various file formats other than Stream-LF
X5. Better OS/2 support
X------------------------ Apr 24 1992 version 1.7a ------------------------
X1. On VMS, create new zip files in fixed length 512 format
X2. Call VMSmunch only if the zip file existed previously
X3. Avoid mktemp() and use simpler name for temporary file.
X4. Rename dir_os2.[ch] -> os2zip.[ch]
X5. On MSDOS, use fdopen() after setmode() in zip.c
X Added setmode() for stdin in zipup.c
X6. Do not split #if on two lines (some compilers don't like this)
X7. __MSDOS__ instead of __BORLANDC__ in crypt.c
X8. Added (char*) cast in deflate.c to avoid warning
X9. OS/2 support for storing file attributes in an extra field.
X
X------------------------ June 6 1992 version 1.8a ------------------------
X1. Fixed bug in tempname() for VMS
X2. Fixed type problems in zipup.c for gcc under VMS
X3. Added VMSmunch in vms subdirectory and updated makefile (descrip.mms)
X4. The extra field for OS/2 is now compressed (Kai Uwe Rommel)
X5. Added various fixes for djgcc (Onno van der Linden)
X6. Fixed long standing bug in wild() for MSDOS (Jon Saxton)
X7. Added support for ZIPOPT environment variable (Bill Davidsen
X and Antoine Verheijen).
X8. Fixed zipsplit bug for VMS (Greg Roelofs)
X9. Added fix for DEC OSF/1 (Kjetil W. J{\o}rgensen)
X10. Added fix for ultrix on DECstation (Jonathan Kamens)
X10. Added sysnopis for zipsplit, etc... in zip.1 (Jonathan Kamens)
X11. Fixed MAILX problem for SysV in ship.c (Greg Roelofs)
X12. Added Linux support (Humberto Ortiz-Zuazaga)
X13. In makefile.os2, support for $(FP), masm 5.x, match.s (Greg & Kai)
X14. Added -w-cln in makefile.bor to avoid warning (David Kirschbaum)
X15. VMS echo suppression code incorporated (Greg Roelofs)
X16. Added fix to match.asm if WSIZE != 32768
X17. Create .exe files directly for target scodos (Bill Davidsen)
X18. Fixed the -0 bug (compressed size was doubled)
X19. Changed -- (read names from stdin) to -@ to reserve -- for undoing
X the effects of ZIPOPT
X20. Create zip entries for directories with the -r option, so that
X directory attributes can be saved. (Kai Uwe Rommel)
X
X------------------------ June 17 1992 version 1.8b ------------------------
X1. Changed -s (Software license) to -L (license) to avoid clash
X with the old shrink option.
X2. read_buf declared as extern only in zip.h
X3. avoid warnings in zip.c for Turbo C: while ((ch = *s) != '\0'
X4. suppressed unused variables mem_inbuf and mem_outbuf in bits.c
X5. Speed up the search for start of zip structures (pksfx files)
X6. Allow updates of an empty pksfx file (original file was destroyed)
X7. Keep correct offsets for pksfx files
X8. On MSDOS, in2ex() was updating the input argument. Also, do not
X force upper case: keep the name as it was in the old zip file.
X This is important for -f. Similarly, force lower case in ex2in()
X on MSDOS, except when dosify (-k) is imposed. I kept however the
X old code under the flag FORCE_UPPER in case I goofed.
X9. When growing a zip file with -g and interrupting it, the whole file was
X lost. We now attempt to restore the previous state of the file.
X10. "zip -fo jjj", where jjj is a non-existent zipfile, used to dump core.
X We now emit a warning.
X11. More generally, we emit a warning for all options assuming the presence
X of a zip file (-d,-f,-u,-g) if the zip file did not exist or was empty.
X Idem for "zip -o jjj" on non-existent or empty zip file.
X12. Copy also the extended local entry in zipcopy().
X13. Updated zip.1 and vms/vms_zip.rnh to describe the new features.
X14. Fixed bug in zipsplit (wrong offsets for all files but first)
X15. Added match.s, optimized 386 version of longest_match() for Unix and
X 32 bit OS/2 (with gas).
X16. Added os2/match32.asm, optimized 386 version of longest_match() for
X 32 bit OS/2 (for assemblers using Intel syntax). NOT TESTED YET.
X17. Added "assume DS: DGROUP" in match.asm to allow SS_NEQ_DS even with MSC.
X18. Added include <malloc.h> in tailor.h for Unix. This is required on
X 16-bit Unix.
X19. Use init_upper() in os2zip.[ch]
X20. Switched back to old tempname(): the new one could overwrite an existing
X file, it ignored tempath, and it caused problems on VMS for files with a
X '.' in the name. Kept however the old code if NO_MKTEMP is defined.
X21. Use 0x1 instead of (unsigned)1 in definition of HSIZE (one compiler
X does not like the cast in an array definition).
X22. Include VMSmunch.h in zip.c
X23. On VMS, zip -o screwed up all offsets in pksfx files
X
X------------------------ June 18 1992 version 1.8c ------------------------
X1. Added missing comma in revision.h
X2. invlocal doesn't work on Cray, use mktime instead (Greg Roelofs)
X3. On VMS, use ctx=stm only to read zipfiles, not input files.
X4. Undo change 21 above, which breaks even more compilers
X5. Include dos.h in util.c and fix trivial compilation errors
X6. Undo change 1 of 1.8b: -L already used for OS/2 (Steve Salisbury)
X7. Do not create a zip entry for directory "." (Greg Roelofs)
X8. Avoid core dump when -@ is given before the zip file (and do
X the right thing).
X
X------------------------ June 19 1992 version 1.8d ------------------------
X1. Force calloc to take unsigned values. (Problem with one 16 bit
X compiler on AT&T 6300).
X2. Fixed fileio.c for Convex (Bill Davidsen)
X3. util_ was missing for zipnote and zipsplit in make_vaxc.com (Glenn Andrews)
X4. Added warning in zip.1 and below (do not update encrypted files
X with pkzip 1.10).
X5. Fixed fix 12 of 1.8b. I drink too much. (Confused bit 1 with bit 8).
X6. Updated install.doc
X7. Fixed result type of os2 version of init_upper().
X8. Added makefile entry for AT&T 6300 (Peter Mauzey)
X9. Fixed typo in descrip.mms
X10. Removed zipfile.c warning: shift count exceeds width of value shifted
X11. Fix enormous bug in init_upper for VMS (upper stayed as zero)
X
X------------------------ June 23 1992 version 1.8e ------------------------
X1. Don't include malloc.h by default (does not exist on VMS)
X2. Define calloc for 16 bit systems (required for AT&T 6300)
X3. Simpler make_vaxc.com (Greg Roelofs)
X4. New vms/descrip.mms and fixes in zipfile.c (Igor)
X5. seekable() must be true for in-memory compression.
X6. Undefine S_IFLNK if NO_SYMLINK (problems with VMS and SCO)
X7. Include descrip.h only once in fileio.c (Mike Freeman)
X8. New os2/match32.asm (untested) and makefile.os2.
X9. Added dosflag in zlist and flist entries, to force MSDOS file
X attributes. It is set if dosify is set, or (under OS/2) for a file
X on a FAT file system which does not have a long name (Kai-Uwe).
X10. Added GetFileTime on OS/2 to avoid core dump on bad dates (Kai-Uwe)
X11. New vms.c supporting deflation of extra headers
X
X------------------------ June 24 1992 version 1.8f ------------------------
X1. Incorporated (finally!) Mac support. *Untested*. (James E. O'Dell)
X2. Another long awaited change: Atari ST. Also *untested*.
X (martin@atlantic.cs.unb.ca)
X3. New makefile.os2, as usual. (Kai-Uwe)
X4. Support for Watcom C in os2zip.c. *Not yet working*. (Kai-Uwe).
X5. I forgot to output the length for stored blocks...
X
X------------------------ June 29 1992 version 1.8g ------------------------
X1. New os2zip.c and makefile.os2 as usual.
X2. In the VMS makefiles, define the symbols systematically so that
X people won't forget to update them. (Fed up with the reports that
X zip does not accept parameters).
X3. Use -L for software License and -E for Extended attributes
X4. Added -F 1000 in makefile entry for scodos (Bill Davidsen)
X5. Replaced strcmp with namecmp in zip.c for check of zipfile name.
X6. New os2/match32.asm (still not working)
X7. Do not close stdin (check for null ifile in zipup.c).
X8. signal handlers for zip and zipcloak fixed to restore echo for VMS
X9. slightly cleaner VMS echo calls in fileio.c
X10. stricmp missing from VMS zipsplit, zipnote: since UTIL was unused for
X util.c, I used it to specify stricmp only; then I had to change some of
X the makefiles which previously used util_.* to use util.*, and I added
X util_.obj to OBJS and OBJN in all of the VMS makefiles. (Greg)
X11. ifdef'd out the debugging commentary in vms.c (Greg)
X12. new VMS makefile for use with (free) MAKE/VMS (Greg)
X13. Eliminate some compiler warnings from BCC, MSC, gcc (Onno van der Linden)
X14. Do not use MSDOS version of init_upper for djgpp (Onno van der Linden)
X15. In msdos/makefile.gcc, added util_.o to OBJN and OBJS, and used asm version
X match.o (Onno van der Linden)
X16. Added install target in makefile (Alvin Koh)
X17. Default makefile entry is named 'all'.
X18. fixes to vms.c for gcc (Igor)
X19. Define S_IWRITE as S_IWUSR for Minix only (problem on X/OS) (Fulvio Marino)
X20. Added xos makefile entry (Fulvio Marino)
X21. In VMS, files without an extension are now stored without the dot (Greg
X and Igor).
X22. Save/restore ebx in match.s and match32.asm
X23. Fixed MAX_DIST in match.s (the asm code produced different results
X than the C code)
X24. Fixed the -b option: allow ENOTSAM instead of EXDEV (used by Turbo C).
X25. Do not complain about zip files created on MSDOS with versions of zip
X above 1.0.
X
X------------------------ Aug 14 1992 version 1.9a ------------------------
X1. Changed -S to -L in help screen
X2. Do not declare chmod for aegis (George Grimes)
X3. Cleaner vms/make_gcc.com (Mike Freeman)
X4. Disabled built-in functions for Linux (Arnt Gulbrandsen)
X5. Added a description of the deflation algorithm in algorith.doc.
X6. Removed ship, now distributed separately.
X7. Added the CRC for in-memory compression. The extra-field format is now
X the official PKWare format (Kai-Uwe)
X8. On OS/2, force lower case names for FAT files if -k is not given. (Kai-Uwe)
X9. Allow coutry dependent mapping for upper to lower case. (Kai-Uwe)
X10. Use namecmp instead of stricmp which was confusing. (Onno van der Linden)
X11. Avoid some warnings in deflate.c (Onno van der Linden)
X12. Avoid one warning in crypt.c, and distribute it separately.
X13. Call init_upper() for all utilities and add util_.o in makefiles (Kai-Uwe)
X
X------------------------ Aug 18 1992 version 1.9b ------------------------
X1. Fixes for Windows NT (Dave Feinleib)
X2. Avoid two warnings for Ultrix (makefile and fileio.c)
X3. Finally removed the declaration of chmod(), which causes endless
X new patches for each new target.
X4. Allow -L for license in the utilities (zipsplit, zipnote, zipcloak).
X5. Mention funzip in zip.1.
X6. Untabify all sources files (for more reliable context diffs)
X7. Fix bug in trees.c dealing with bit length overflow.
X8. Fix bug in zipup.c when reading from stdin: if (ifile) does not
X produce the expected result.
X9. Avoid duplication of bug list in zip.1 and history.
X10. Removed ship from zip.1.
X
X------------------------ Aug 20 1992 version 1.9 ------------------------
X1. Renamed the atari files to avoid name conflicts (for unzip -j).
X2. Don't tell 'use zip -L' in zipnote and zipsplit.
X3. Add a rule for util_.ojb in the msdos and atari makefiles
X4. Fixed compilation option for util_.obj in makefile.msc (msc 5.1 bug)
X5. Added the 'Where' file.
X6. More information about zip in Readme.
X7. Fixed install.doc.
X8. Fixed vms/vms_zip.rnh
X9. Fixed init_upper() in util.c and os2zip.c (Kai-Uwe)
X
X
XThings to check or to be done (see also BUGS section in zip.1):
X
X- zip should not create 'stored' files with extended local headers
X
X- There is not (yet) a way to undo the effect of ZIPOPT
X
X- Under MSDOS, zip will find hidden and system files, but not set the
X attributes appropriately in the zip file so that unzip can restore them.
X
X- it is possible in weird cases to add a zipfile to itself
X
X- On OS/2, zip refuses to match some names, such as those beginning with an
X exclamation mark. Same for names starting with #, possibly more.
END_OF_FILE
if test 49244 -ne `wc -c <'history'`; then
echo shar: \"'history'\" unpacked with wrong size!
fi
# end of 'history'
fi
if test ! -d 'mac' ; then
echo shar: Creating directory \"'mac'\"
mkdir 'mac'
fi
if test ! -d 'msdos' ; then
echo shar: Creating directory \"'msdos'\"
mkdir 'msdos'
fi
if test ! -d 'nt' ; then
echo shar: Creating directory \"'nt'\"
mkdir 'nt'
fi
if test ! -d 'os2' ; then
echo shar: Creating directory \"'os2'\"
mkdir 'os2'
fi
if test -f 'tailor.h' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'tailor.h'\"
else
echo shar: Extracting \"'tailor.h'\" \(6875 characters\)
sed "s/^X//" >'tailor.h' <<'END_OF_FILE'
X/* tailor.h -- Not copyrighted 1992 Mark Adler */
X
X/* const's are inconsistently used across ANSI libraries--kill for all
X header files. */
X#ifndef __GO32__
X# define const
X#endif
X
X
X/* Define MSDOS for Turbo C as well as Microsoft C */
X#ifdef __POWERC /* For Power C too */
X# define __TURBOC__
X#endif /* __POWERC */
X#if (defined(__TURBOC__) && !defined(MSDOS))
X# define MSDOS
X#endif
X
X#ifdef ATARI_ST
X# undef MSDOS /* avoid the MS-DOS specific includes */
X#endif
X
X/* Use prototypes and ANSI libraries if _STDC__, or Microsoft or Borland C,
X * or Silicon Graphics, or IBM C Set/2, or GNU gcc under emx.
X */
X#if (defined(__STDC__) || defined(MSDOS) || defined(sgi))
X# ifndef PROTO
X# define PROTO
X# endif /* !PROTO */
X# define MODERN
X#endif /* MSDOS */
X
X#if (defined(__IBMC__) || defined(__EMX__) || defined(ATARI_ST))
X# ifndef PROTO
X# define PROTO
X# endif /* !PROTO */
X# define MODERN
X#endif
X
X
X#ifdef __IBMC__
X# define S_IFMT 0xF000
X#endif /* __IBMC__ */
X
X#ifdef __EMX__
X# define __32BIT__
X#endif /* __EMX__ */
X
X#ifdef __WATCOMC__
X# define __32BIT__
X#endif
X
X#if (defined(__OS2__) && !defined(OS2))
X# define OS2
X#endif
X
X
X/* Turn off prototypes if requested */
X#if (defined(NOPROTO) && defined(PROTO))
X# undef PROTO
X#endif
X
X
X/* Used to remove arguments in function prototypes for non-ANSI C */
X#ifdef PROTO
X# define OF(a) a
X#else /* !PROTO */
X# define OF(a) ()
X#endif /* ?PROTO */
X
X
X/* Memory allocation. */
X#ifdef MACOS
X# define DYN_ALLOC
X#endif
X#if (defined(MSDOS) && !defined(__GO32__) && !defined(WIN32))
X# ifdef __TURBOC__
X# include <alloc.h>
X# define DYN_ALLOC
X /* Turbo C 2.0 does not accept far static allocations in small model */
X void far * fcalloc OF((unsigned items, unsigned size));
X# else /* !__TURBOC__ */
X# include <malloc.h>
X# define farmalloc _fmalloc
X# define farfree _ffree
X# define fcalloc(nitems,itemsize) halloc((long)(nitems),(itemsize))
X# endif /* ?__TURBOC__ */
X#else /* !MSDOS */
X# if defined(WIN32)
X# include <malloc.h>
X# endif
X# ifdef far
X# undef huge
X# undef far
X# undef near
X# endif
X# define huge
X# define far
X# define near
X# define farmalloc malloc
X# define farfree free
X# define fcalloc(items,size) calloc((unsigned)(items), (unsigned)(size))
X# ifndef PROTO
X extern char *calloc(); /* essential for 16 bit systems (AT&T 6300) */
X# endif
X#endif /* ?MSDOS */
X
X
X#if (defined(OS2) && !defined(MSDOS))
X/* MSDOS is defined anyway with MS C 16-bit. So the block above works.
X * For the 32-bit compilers, MSDOS must not be defined in the block above. */
X# define MSDOS
X/* inherit MS-DOS file system etc. stuff */
X#endif
X
X
X/* Define MSVMS if either MSDOS or VMS defined */
X#if defined(MSDOS) || defined(VMS)
X# define MSVMS
X#endif
X
X/* case mapping functions. case_map is used to ignore case in comparisons,
X * to_up is used to force upper case even on Unix (for dosify option).
X */
X#if defined(OS2) || defined(MSDOS) || defined(VMS)
X# define case_map(c) upper[c]
X# define to_up(c) upper[c]
X#else
X# define case_map(c) (c)
X# define to_up(c) ((c) >= 'a' && (c) <= 'z' ? (c)-'a'+'A' : (c))
X#endif
X
X/* Define void, voidp, and extent (size_t) */
X#include <stdio.h>
X#ifdef MODERN
X# if (!defined(M_XENIX) && !(defined(__GNUC__) && defined(sun)))
X# include <stddef.h>
X# endif /* !M_XENIX */
X# include <stdlib.h>
X typedef size_t extent;
X typedef void voidp;
X#else /* !MODERN */
X typedef unsigned int extent;
X# define void int
X typedef char voidp;
X#endif /* ?MODERN */
X
X/* Get types and stat */
X#ifdef VMS
X# include <types.h>
X# include <stat.h>
X#else /* !VMS */
X# ifdef MACOS
X# include <types.h>
X# include <stddef.h>
X# include <Files.h>
X# include <StandardFile.h>
X# include <Think.h>
X# include <LoMem.h>
X# include <Pascal.h>
X# include "macstat.h"
X# else
X# ifdef ATARI_ST
X# include <ext.h>
X# include <tos.h>
X# else
X# include <sys/types.h>
X# include <sys/stat.h>
X# endif
X# endif
X#endif /* ?VMS */
X
X/* Some systems define S_IFLNK but do not support symbolic links */
X#if defined (S_IFLNK) && (defined(NO_SYMLINK) || defined(MACOS))
X# undef S_IFLNK
X#endif
X
X/* Cheap fix for unlink on VMS */
X#ifdef VMS
X# define unlink delete
X#endif /* VMS */
X
X
X/* For Pyramid */
X#ifdef pyr
X# define strrchr rindex
X# define ZMEM
X#endif /* pyr */
X
X
X/* File operations--use "b" for binary if allowed or fixed length 512 on VMS */
X#ifdef VMS
X# define FOPR "r","ctx=stm"
X# define FOPM "r+","ctx=stm","rfm=fix","mrs=512"
X# define FOPW "w","ctx=stm","rfm=fix","mrs=512"
X#else /* !VMS */
X# ifdef MODERN
X# define FOPR "rb"
X# define FOPM "r+b"
X# define FOPW "wb"
X# else /* !MODERN */
X# define FOPR "r"
X# define FOPM "r+"
X# define FOPW "w"
X# endif /* ?MODERN */
X#endif /* VMS */
X
X/* Open the old zip file in exclusive mode if possible (to avoid adding
X * zip file to itself).
X */
X#ifdef OS2
X# define FOPR_EX FOPM
X#else
X# define FOPR_EX FOPR
X#endif
X
X/* Define this symbol if your target allows access to unaligned data.
X * This is not mandatory, just a speed optimization. The compressed
X * output is strictly identical.
X */
X#if defined(MSDOS) || defined(i386) || defined(mc68020) || defined(vax)
X# define UNALIGNED_OK
X#endif
X
X
X/* Under MSDOS we may run out of memory when processing a large number
X * of files. Compile with MEDIUM_MEM to reduce the memory requirements or
X * with SMALL_MEM to use as little memory as possible.
X */
X#ifdef SMALL_MEM
X# define CBSZ 2048 /* buffer size for copying files */
X# define ZBSZ 2048 /* buffer size for temporary zip file */
X#else
X# ifdef MEDIUM_MEM
X# define CBSZ 8192
X# define ZBSZ 8192
X# else
X# if defined(OS2) && !defined(M_I86SM)
X# define CBSZ 0xE000
X# define ZBSZ 0x7F00
X /* The C library of some compilers does not allow a buffer size > 32K */
X# else
X# define CBSZ 16384
X# define ZBSZ 16384
X# endif
X# endif
X#endif
X
X#ifdef ATARI_ST
X# define MSDOS
X# define MSVMS
X# ifndef O_BINARY
X# define O_BINARY 0
X# endif
X# ifndef S_IFMT
X# define S_IFMT (S_IFCHR|S_IFREG|S_IFDIR)
X# endif
X
X/* a whole bunch of functions needs Tos '\\' filnames
X * instead of '/', the translation functions are in fileio.c:
X */
X# define unlink st_unlink
X# define chmod st_chmod
X# define mktemp st_mktemp
X# define fopen st_fopen
X# define open st_open
X# define SSTAT st_stat
X# define findfirst st_findfirst
X# define link st_rename
X# define rmdir st_rmdir
X
X int st_unlink OF((char *));
X int st_chmod OF((char *, int));
X char *st_mktemp OF((char *));
X FILE *st_fopen OF((char *, char *));
X int st_open OF((char *, int));
X int st_stat OF((char *, struct stat *));
X int st_findfirst OF((char *, struct ffblk *, int));
X int st_rename OF((char *, char *));
X int st_rmdir OF((char *));
X#else
X# define SSTAT stat
X#endif
X
X/* end of tailor.h */
END_OF_FILE
if test 6875 -ne `wc -c <'tailor.h'`; then
echo shar: \"'tailor.h'\" unpacked with wrong size!
fi
# end of 'tailor.h'
fi
if test ! -d 'vms' ; then
echo shar: Creating directory \"'vms'\"
mkdir 'vms'
fi
echo shar: End of archive 1 \(of 11\).
cp /dev/null ark1isdone
MISSING=""
for I in 1 2 3 4 5 6 7 8 9 10 11 ; do
if test ! -f ark${I}isdone ; then
MISSING="${MISSING} ${I}"
fi
done
if test "${MISSING}" = "" ; then
echo You have unpacked all 11 archives.
rm -f ark[1-9]isdone ark[1-9][0-9]isdone
else
echo You still must unpack the following archives:
echo " " ${MISSING}
fi
exit 0
exit 0 # Just in case...